﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FeaturePlusInWeb
{
    public static class Config
    {
        /// <summary>
        /// 网站domain
        /// </summary>
        public static string SiteDoMain
        {
            get
            {
                //return "http://www.gaia.org.cn";
                //return "http://zhujiang.ifyee.3322.org";
                //return "http://127.0.0.1:8085";
                return "http://www.caianet.org.cn";
            }
        }

        /// <summary>
        /// 请求头
        /// </summary>
        public static string UrlHead
        {
            get {
                return SiteDoMain + "/cms";
            }
        }

        /// <summary>
        /// 是否开启维护模式（可以增加，修改推荐位）
        /// </summary>
        public static bool Xmode
        {
            get;
            set;
        }

        /// <summary>
        /// 请求结尾
        /// </summary>
        public static string UrlEnd
        {
            get
            {
                return "&"+DateTime.Now.Ticks.ToString();
            }
        }

        public enum SearchType
        {
            /// <summary>
            /// 普通推荐位
            /// </summary>
            FeaturedPlus,
            /// <summary>
            /// 资讯门户推荐位
            /// </summary>
            FeaturedPlus_Info,
            /// <summary>
            /// 图集推荐位
            /// </summary>
            FeaturedPlus_Pic,
            /// <summary>
            /// 产品推荐位
            /// </summary>
            FeaturedPlus_Product,
            /// <summary>
            /// 品牌推荐位
            /// </summary>
            FeaturedPlus_Brand,
            /// <summary>
            /// 行业门户推荐位
            /// </summary>
            FeaturedPlus_Industry,
            /// <summary>
            /// 静态块
            /// </summary>
            StaticBlock,
            /// <summary>
            /// 仅分类目录
            /// </summary>
            IsRoof
        }
    }
}
